﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1._29_设计模式.简单工厂.计算器._1
{
    class Class1
    {
        public static void main()
        {

            Console.WriteLine("please insert A");
            string a=Console.ReadLine();

            Console.WriteLine("please insert simble");
            string b = Console.ReadLine();

            Console.WriteLine("please insert B");
            string c = Console.ReadLine();

            if (b == "+") 
            {
                Console.WriteLine(int.Parse(a) + int.Parse(c));
            }
            if (b == "-")
            {
                Console.WriteLine(int.Parse(a) - int.Parse(c));
            }
            if (b == "*")
            {
                Console.WriteLine(int.Parse(a) * int.Parse(c));
            }
            if (b == "/")
            {
                Console.WriteLine(int.Parse(a) / int.Parse(c));
            }

            Console.ReadLine();
        }
    }
}
